package com.demo.security.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 接入客户端信息Entity类
 *
 * @author liyan
 * @since 2020-06-27 13:50:49
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("oauth_client_details")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OauthClientDetails implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "client_id", type = IdType.AUTO)
    private String clientId;

    @TableField("resource_ids")
    private String resourceIds;

    @TableField("client_secret")
    private String clientSecret;

    @TableField("scope")
    private String scope;

    @TableField("authorized_grant_types")
    private String authorizedGrantTypes;

    @TableField("web_server_redirect_uri")
    private String webServerRedirectUri;

    @TableField("authorities")
    private String authorities;

    @TableField("access_token_validity")
    private Integer accessTokenValidity;

    @TableField("refresh_token_validity")
    private Integer refreshTokenValidity;

    @TableField("additional_information")
    private String additionalInformation;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("archived")
    private Integer archived;

    @TableField("trusted")
    private Integer trusted;

    @TableField("autoapprove")
    private String autoapprove;
}
